package com.smartstate.IOC.controller;

import com.smartstate.IOC.service.SecuritySituationService;
import com.smartstate.IOC.vo.CountEquipmentVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/security")
@Api(tags = "安防态势")
public class SecuritySituationController {
    @Autowired
    private SecuritySituationService situationService;


    @GetMapping("/countEquipmentType")
    @ApiOperation(value = "统计视频设备类型")
    public CountEquipmentVO countEquipmentType() {
        return situationService.countEquipmentType();
    }
}
